package com.gitee.huanminabc.utils_test.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author mac
 * @Date 2024-12-06 09:57:15
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "TUserDatasourceEntity",description = "这个表是用户自己的数据库连接信息")
@TableName("t_user_datasource")
public class TUserDatasourceEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    
    @ApiModelProperty(value = "没有字段描述", required = true)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    
    /**
     * 数据库ip
     */
    @ApiModelProperty(value = "数据库ip", required = true)
    @TableField("ip")
    private String ip;

    
    /**
     * 数据库端口
     */
    @ApiModelProperty(value = "数据库端口", required = true)
    @TableField("port")
    private Integer port;

    
    /**
     * 数据库名称
     */
    @ApiModelProperty(value = "数据库名称", required = true)
    @TableField("dbName")
    private String dbName;

    
    /**
     * 数据库账户
     */
    @ApiModelProperty(value = "数据库账户", required = true)
    @TableField("userName")
    private String userName;

    
    /**
     * 数据库密码
     */
    @ApiModelProperty(value = "数据库密码", required = true)
    @TableField("passWord")
    private String passWord;

    
    /**
     * 和用户表关联
     */
    @ApiModelProperty(value = "和用户表关联", required = true)
    @TableField("account")
    private String account;

    
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", required = true)
    @TableField("createTime")
    private Date createTime;

    
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间", required = true)
    @TableField("updateTime")
    private Date updateTime;

    
    /**
     * 删除时间
     */
    @ApiModelProperty(value = "删除时间", required = false)
    @TableField("deleteTime")
    private Date deleteTime;

    
    /**
     * 修改人，默认-1，如果有写account
     */
    @ApiModelProperty(value = "修改人，默认-1，如果有写account", required = true)
    @TableField("updateBy")
    private String updateBy;

    
    /**
     * 数据库版本
     */
    @ApiModelProperty(value = "数据库版本", required = true)
    @TableField("version")
    private Integer version;

    
    /**
     * 0是失败,1是正常
     */
    @ApiModelProperty(value = "0是失败,1是正常", required = true)
    @TableField("state")
    private Integer state;

    
    /**
     * 数据库类型:比如mysql,oracle
     */
    @ApiModelProperty(value = "数据库类型:比如mysql,oracle", required = true)
    @TableField("type")
    private String type;

}
